#ifndef COMMANDEXECUTE_H
#define COMMANDEXECUTE_H

#include <string>

class CommandExecute
{
public:
    static bool execute(const char *symbol, const std::string &cmd);

protected:
    static bool executeStopLoss(int orderNum, const char *symbol, double value);
    static bool executeStopLoss(int orderNum, const char *symbol, int value);
    static bool executeTakeProfit(int orderNum, const char *symbol, double value);
    static bool executeTakeProfit(int orderNum, const char *symbol, int value);
    static bool executeTrailingStop(int orderNum, const char *symbol, int value);
    static bool executeTrailingStop(int orderNum, const char *symbol, double value);

    static int s_stoplossVal;
    static int s_takeprofitVal;
    static int s_trailstopVal;
};

#endif